<?php

namespace Wilead\IArtistBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class UserType extends AbstractType {

    public function buildForm(FormBuilderInterface $builder, array $options) {
        $builder
                ->add('mobile')
                ->add('password')
                ->add('signature')
                ->add('nickname')
                ->add('location')
                ->add('sex')
                ->add('age')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver) {
        $resolver->setDefaults(array(
            'data_class' => 'Wilead\IArtistBundle\Entity\User',
            'csrf_protection' => false,
        ));
    }

    public function getName() {
        return '';
    }

}
